import {renderProdComponents} from "@/pages/lowCodeEditorPlus/components/Preview/renderProdComponents"
import { Component } from "@/stores/edit-pages-store";
interface TableOperationColumnType {
  buttonGroup: Component[],
  record: Record<string, any>,
  index: number,
  parentDataProperties: Record<string, any>,
}
const TableOperationColumn = ({ buttonGroup, record, index, parentDataProperties}: TableOperationColumnType) => {
  const ancestorDataProperties={record, recordIndex: index, ...parentDataProperties}
  const renderComponents = renderProdComponents(buttonGroup,{ancestorDataProperties})
  return (
    <div>
      {renderComponents()}
    </div>
  );
};

export default TableOperationColumn;
